package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.BaiKeBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.GetBaiKeInfoIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.TListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class GetBaiKeInfoModel extends RetrofitBaseModel implements GetBaiKeInfoIface<BaiKeBean> {
    private AllService allService;
    private Retrofit retrofit;
    public GetBaiKeInfoModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void getBaiKeInfo(String encid, TListener<BaiKeBean> tListener) {
        Call<BaiKeBean> call = allService.getBaiKeInfo(encid);
        callenqueue(call,tListener);
    }
}
